﻿using System.Collections.Generic;

namespace Ex1Student
{
    class Student
    {
        private string firstName;
        private string lastName;
        private int fn;
        private string tel;
        private string eMail;
        private List<int> marks;
        private int groupNumber;

        public Student(string firstName, string lastName, int fn, string tel, string eMail, List<int> marks, int groupNumber)
        {
            this.firstName = firstName;
            this.lastName = lastName;
            this.fn = fn;
            this.tel = tel;
            this.eMail = eMail;
            this.marks = marks;
            this.groupNumber = groupNumber;
        }

        public string FirstName
        {
            get
            {
                return firstName;
            }
            set
            {
                firstName = value;
            }
        }

        public string LastName
        {
            get
            {
                return lastName;
            }
            set
            {
                lastName = value;
            }
        }

        public int Fn
        {
            get
            {
                return fn;
            }
            set
            {
                fn = value;
            }
        }

        public string Tel
        {
            get
            {
                return tel;
            }
            set
            {
                tel = value;
            }
        }

        public string EMail
        {
            get
            {
                return eMail;
            }
            set
            {
                eMail = value;
            }
        }

        public List<int> Marks
        {
            get
            {
                return marks;
            }
            set
            {
                marks = value;
            }
        }

        public int GroupNumber
        {
            get
            {
                return groupNumber;
            }
            set
            {
                groupNumber = value;
            }
        }

        public override string ToString()
        {
            return string.Format("{0} {1} {2} {3} {4} {5}", firstName, lastName, fn, tel, eMail, groupNumber);
        }
    }
}
